import { AddFormatFunc, structRuleType } from "../types";

AddFormatFunc<structRuleType>({

	type: "STRUCT",

	handle: (rule, FMC) => {
		return `struct${rule[1].length === 0 ? "" : ` ${FMC(rule[1])}`}${FMC(rule[2])}${FMC(rule[3])}`;
	},

})
